package com.tjsinfo.tjsoa.documentationflow.dangweishouwen.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * TDangweishouwenNeirong entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TDangweishouwenNeirong implements java.io.Serializable {

	// Fields

	private String id;
	private Integer flowid;
	private String laiwenjiguan;
	private String laiwenzihao;
	private String laiwenbiaoti;
	private String fengshu;
	private String shouwenbianhao;
	private Date shouwenriqi;
	private Date laiwenriqi;
	private String pingshijuanhao;
	private String zhaiyou;
	private String nibanyijian;
	private String jingshouren;
	private String nibanren;
	private String zhuangtai;
	private Long taskId;
	private Integer sortid;
	private String jingshoubumen;
	private Integer isguidang;
	private String dangqianhuanjie;
	private Set TDangweishouwenYijians = new HashSet(0);
	private Set TDangweishouwenBumenYijians = new HashSet(0);
	private Set TDangweishouwenFujians = new HashSet(0);
	private Integer dataBaseId;
	private String docId;
	private String shouwentype;
	private String jinjichengdu;
	private String bumennames;
	private String bumenids;
	private String lingdaonames;
	private String lingdaoids;
	
	// Constructors
	
	/** default constructor */
	public TDangweishouwenNeirong() {
	}

	/** minimal constructor */
	public TDangweishouwenNeirong(Integer flowid, String laiwenjiguan,
			String laiwenzihao, String shouwenbianhao) {
		this.flowid = flowid;
		this.laiwenjiguan = laiwenjiguan;
		this.laiwenzihao = laiwenzihao;
		this.shouwenbianhao = shouwenbianhao;
	}

	/** full constructor */
	public TDangweishouwenNeirong(Integer flowid, String laiwenjiguan,
			String laiwenzihao, String fengshu, String shouwenbianhao,
			Date shouwenriqi, String pingshijuanhao, String zhaiyou,
			String nibanyijian, String jingshouren, String nibanren,
			String zhuangtai, Set TDangweishouwenYijians,
			Set TDangweishouwenFujians) {
		this.flowid = flowid;
		this.laiwenjiguan = laiwenjiguan;
		this.laiwenzihao = laiwenzihao;
		this.fengshu = fengshu;
		this.shouwenbianhao = shouwenbianhao;
		this.shouwenriqi = shouwenriqi;
		this.pingshijuanhao = pingshijuanhao;
		this.zhaiyou = zhaiyou;
		this.nibanyijian = nibanyijian;
		this.jingshouren = jingshouren;
		this.nibanren = nibanren;
		this.zhuangtai = zhuangtai;
		this.TDangweishouwenYijians = TDangweishouwenYijians;
		this.TDangweishouwenFujians = TDangweishouwenFujians;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getFlowid() {
		return this.flowid;
	}

	public void setFlowid(Integer flowid) {
		this.flowid = flowid;
	}

	public String getLaiwenjiguan() {
		return this.laiwenjiguan;
	}

	public void setLaiwenjiguan(String laiwenjiguan) {
		this.laiwenjiguan = laiwenjiguan;
	}

	public String getLaiwenzihao() {
		return this.laiwenzihao;
	}

	public void setLaiwenzihao(String laiwenzihao) {
		this.laiwenzihao = laiwenzihao;
	}

	public String getFengshu() {
		return this.fengshu;
	}

	public void setFengshu(String fengshu) {
		this.fengshu = fengshu;
	}

	public String getShouwenbianhao() {
		return this.shouwenbianhao;
	}

	public void setShouwenbianhao(String shouwenbianhao) {
		this.shouwenbianhao = shouwenbianhao;
	}

	public Date getShouwenriqi() {
		return this.shouwenriqi;
	}

	public void setShouwenriqi(Date shouwenriqi) {
		this.shouwenriqi = shouwenriqi;
	}

	public String getPingshijuanhao() {
		return this.pingshijuanhao;
	}

	public void setPingshijuanhao(String pingshijuanhao) {
		this.pingshijuanhao = pingshijuanhao;
	}

	public String getZhaiyou() {
		return this.zhaiyou;
	}

	public void setZhaiyou(String zhaiyou) {
		this.zhaiyou = zhaiyou;
	}

	public String getNibanyijian() {
		return this.nibanyijian;
	}

	public void setNibanyijian(String nibanyijian) {
		this.nibanyijian = nibanyijian;
	}

	public String getJingshouren() {
		return this.jingshouren;
	}

	public void setJingshouren(String jingshouren) {
		this.jingshouren = jingshouren;
	}

	public String getNibanren() {
		return this.nibanren;
	}

	public void setNibanren(String nibanren) {
		this.nibanren = nibanren;
	}

	public String getZhuangtai() {
		return this.zhuangtai;
	}

	public void setZhuangtai(String zhuangtai) {
		this.zhuangtai = zhuangtai;
	}

	public Set getTDangweishouwenYijians() {
		return this.TDangweishouwenYijians;
	}

	public void setTDangweishouwenYijians(Set TDangweishouwenYijians) {
		this.TDangweishouwenYijians = TDangweishouwenYijians;
	}
	
	

	public Set getTDangweishouwenBumenYijians() {
		return TDangweishouwenBumenYijians;
	}

	public void setTDangweishouwenBumenYijians(Set tDangweishouwenBumenYijians) {
		TDangweishouwenBumenYijians = tDangweishouwenBumenYijians;
	}

	public Set getTDangweishouwenFujians() {
		return this.TDangweishouwenFujians;
	}

	public void setTDangweishouwenFujians(Set TDangweishouwenFujians) {
		this.TDangweishouwenFujians = TDangweishouwenFujians;
	}

	public Date getLaiwenriqi() {
		return laiwenriqi;
	}

	public void setLaiwenriqi(Date laiwenriqi) {
		this.laiwenriqi = laiwenriqi;
	}
	
	public void addFujian(TDangweishouwenFujian dangweishouwenFujian)
	{
		dangweishouwenFujian.setTDangweishouwenNeirong(this);
		TDangweishouwenFujians.add(dangweishouwenFujian);
	}

	public Long getTaskId() {
		return taskId;
	}

	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	public Integer getSortid() {
		return sortid;
	}

	public void setSortid(Integer sortid) {
		this.sortid = sortid;
	}

	public String getJingshoubumen() {
		return jingshoubumen;
	}

	public void setJingshoubumen(String jingshoubumen) {
		this.jingshoubumen = jingshoubumen;
	}

	public Integer getIsguidang() {
		return isguidang;
	}

	public void setIsguidang(Integer isguidang) {
		this.isguidang = isguidang;
	}

	public String getLaiwenbiaoti() {
		return laiwenbiaoti;
	}

	public void setLaiwenbiaoti(String laiwenbiaoti) {
		this.laiwenbiaoti = laiwenbiaoti;
	}

	public String getDangqianhuanjie() {
		if("办公室主任二次复核".equals(dangqianhuanjie)){
			return "部门会签复核";
		}else{
			return dangqianhuanjie;
		}
	}

	public void setDangqianhuanjie(String dangqianhuanjie) {
		this.dangqianhuanjie = dangqianhuanjie;
	}

	public Integer getDataBaseId() {
		return dataBaseId;
	}

	public void setDataBaseId(Integer dataBaseId) {
		this.dataBaseId = dataBaseId;
	}

	public String getDocId() {
		return docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
	}
	
	
	public String getShouwentype() {
		return shouwentype;
	}

	public void setShouwentype(String shouwentype) {
		this.shouwentype = shouwentype;
	}

	public String getJinjichengdu() {
		return jinjichengdu;
	}

	public void setJinjichengdu(String jinjichengdu) {
		this.jinjichengdu = jinjichengdu;
	}

	public String getBiaoTiDisplay(){
		if(zhaiyou.length() > 13){
			return zhaiyou.substring(0,12)+"...";
		}else{
			return zhaiyou;
		}
	}

	public String getBumennames() {
		return bumennames;
	}

	public void setBumennames(String bumennames) {
		this.bumennames = bumennames;
	}

	public String getBumenids() {
		return bumenids;
	}

	public void setBumenids(String bumenids) {
		this.bumenids = bumenids;
	}

	public String getLingdaonames() {
		return lingdaonames;
	}

	public void setLingdaonames(String lingdaonames) {
		this.lingdaonames = lingdaonames;
	}

	public String getLingdaoids() {
		return lingdaoids;
	}

	public void setLingdaoids(String lingdaoids) {
		this.lingdaoids = lingdaoids;
	}
	
}